package cn.com.jslh.nfcpro.adapter;

import android.widget.TextView;

import cn.com.jslh.nfcpro.R;
import cn.com.jslh.nfcpro.base.BaseRecycleViewAdapter;
import cn.com.jslh.nfcpro.base.SuperViewHolder;
import cn.com.jslh.nfcpro.bean.JiLuBean;

/**
 * 作者：周洲 on 2017/3/27 09:31
 * <p>
 * 邮箱：double0zhou@126.com
 */

public class JiLuAdapter extends BaseRecycleViewAdapter<Object> {
    @Override
    public int getLayoutId() {
        return R.layout.jilu_list_item_layout;
    }

    @Override
    public void onBindItemHolder(SuperViewHolder holder, int position) {
        JiLuBean jiLuBean = (JiLuBean)getDatalist().get(position);
        ((TextView)holder.getView(R.id.cardid)).setText(jiLuBean.getCardid());
        ((TextView)holder.getView(R.id.time)).setText(jiLuBean.getTime().substring(5));
    }
}
